package enums;

/**
 *
 * @Title: 费用类型
 * @Description: TODO
 * @author ws
 * @date 2018年4月20日 下午7:07:03
 */
public enum BusinessCostTypesEnum {

	WEIYUEJIN("违约金",1),
	YAJIN("押金",2),
	ZUJIN("租金",3),
	lENGSHUI("冷水",4),
	ZHONGSHUI("中水",5),
	RESHUI("热水",6),
	DIANBIAO("电",7),
	MEIRANQI("燃气/煤气",8),
	BAOJIEFEI("保洁费",9),
	WEIXIUFEI("维修费",10),
	PEICHANGFEI("赔偿费",11),
	ZHUANGXIUFEI("装修费",12),
	PEISONGFEI("配送费",13),
	KUANDAIFEI("宽带费",14),
	WEISHENGFEI("卫生费",15),
	YOUXIANFEI("有线电视费",16),
	NET("上网费", 17),
	WUYEFEI("物业费", 18),
	JIEYUEJIESUAN("解约结算", 90),
	QITAFEIYONG("其他费用",99);

	private String name;
	private int index;

	// 普通方法
	public static String getName(Integer index) {
		if (index == null) {
			return null;
		}
		for (BusinessCostTypesEnum c : BusinessCostTypesEnum.values()) {
			if (c.getIndex() == index) {
				return c.name;
			}
		}
		return null;
	}

	private BusinessCostTypesEnum(String name, int index) {
		this.name = name;
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

}
